/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const systemRouter = {
  path: '/system',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'System',
  meta: {
    title: '系统设置',
    icon: 'el-icon-setting'
  },
  children: [
    {
      path: 'users',
      component: () => import('@/views/system/account'),
      name: 'account',
      meta: { title: '账户管理', noCache: true,icon: 'peoples' }
    },
    {
      path: 'permission',
      component: () => import('@/views/system/role'),
      name: 'permission',
      meta: { title: '权限控制', noCache: true,icon: 'lock' }
    }
  ]
}

export default systemRouter
